<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div>p{
            /*选择最近的一级子元素*/
            color: red;
        }
    </style>
</head>
<div>
    <p>p</p>
    <p>p</p>
    <p><a href="">aaa</a></p>
</div>
<body>

</body>
</html>